const Maps = () => import("@/views/Map/Maps/index.vue");
const Details = () => import("@/views/Map/Details/index");
const WangEdit = () => import("@/views/WangEdit/index.vue");
const ManyPackage = () => import("@/views/ManyPackage/index.vue");

const asyncRoutes = [
  {
    path: "/map",
    name: "Map",
    redirect: "Detail",
    component: () => import("../views/ParentLayout/index.vue"),
    meta: {
      isMenu: true,
      name: "地图",
      icon: "el-icon-s-home",
    },
    children: [
      {
        path: "/map/Details",
        name: "Details",
        component: Details,
        meta: {
          isMenu: true,
          name: "地图详情1",
          icon: "el-icon-s-home",
        },
      },
      {
        path: "/map/maps",
        name: "Maps",
        component: Maps,
        meta: {
          isMenu: true,
          name: "地图详情2",
          icon: "el-icon-s-home",
        },
      },
    ],
  },
  {
    path: "/edit",
    name: "WangEdit",
    component: WangEdit,
    meta: {
      isMenu: true,
      name: "编辑器",
      icon: "el-icon-s-home",
    },
  },
  {
    path: "/package",
    name: "ManyPackage",
    component: ManyPackage,
    meta: {
      isMenu: true,
      name: "更多包裹",
      icon: "el-icon-s-home",
    },
  },
];

export default asyncRoutes;
